package com.gitee.lht.common.exception;



/**
 * 数据库异常类
 * @author zj
 *
 */
public class DatabaseException extends BaseException {

    private static final long serialVersionUID = 1L;

    public DatabaseException() {
        super();
    }

    public DatabaseException(String errorMsg) {
        super(errorMsg);
    }

    public DatabaseException(int errorCode, String errorMsg) {
        super(errorMsg);
        this.code = errorCode;
    }

    public DatabaseException(int errorCode, String errorMsg, String dataResult) {
        super(errorMsg);
        this.code = errorCode;
        this.content = dataResult;
    }

    public DatabaseException(String errorMsg, Throwable cause) {
        super(errorMsg, cause);
    }

    public DatabaseException(int errorCode, String errorMsg, Throwable cause) {
        super(errorMsg, cause);
        this.code = errorCode;
    }

    public DatabaseException(int errorCode, String errorMsg, String dataResult, Throwable cause) {
        super(errorMsg, cause);
        this.code = errorCode;
        this.content = dataResult;
    }
}
